package beans.factory.config;

/**
 * @Author: Take-off
 * @Description: //TODO 单例Bean 注册表
 * @Date: 10:02 AM 2022/12/12
 **/
public interface SingletonBeanRegistry {

    /**
     * @Author: Take-off
     * @Description: //TODO 根据名字获取单例对象
     * @Date: 10:03 AM 2022/12/12
     * @Param: [beanName]
     * @return: java.lang.Object
     **/
    Object getSingleton(String beanName);

    /**
     * @Author: Take-off
     * @Description: //TODO 注册单例对象
     * @Date: 10:03 AM 2022/12/12
     * @Param: [beanName, singletonObject]
     * @return: void
     **/
    void registerSingleton(String beanName, Object singletonObject);
}
